home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / demo / wemdemo4.zip / INFO / ELISP.1 < prev    next >
Text File  |  1994-09-21  |  51KB  |  1,085 lines

  1. Info file elisp, produced by Makeinfo, -*- Text -*- from input file
  2. elisp.texi.
  3.  
  4.    This file documents GNU Emacs Lisp.
  5.  
  6.    This is edition 1.03 of the GNU Emacs Lisp Reference Manual,   for
  7. Emacs Version 18.
  8.  
  9.    Published by the Free Software Foundation, 675 Massachusetts
  10. Avenue,  Cambridge, MA 02139 USA
  11.  
  12.    Copyright (C) 1990 Free Software Foundation, Inc.
  13.  
  14.    Permission is granted to make and distribute verbatim copies of
  15. this manual provided the copyright notice and this permission notice
  16. are preserved on all copies.
  17.  
  18.    Permission is granted to copy and distribute modified versions of
  19. this manual under the conditions for verbatim copying, provided that
  20. the entire resulting derived work is distributed under the terms of a
  21. permission notice identical to this one.
  22.  
  23.    Permission is granted to copy and distribute translations of this
  24. manual into another language, under the above conditions for modified
  25. versions, except that this permission notice may be stated in a
  26. translation approved by the Foundation.
  27.  
  28.  
  29. 
  30. File: elisp,  Node: Top,  Next: Introduction,  Prev: (dir),  Up: (dir)
  31.  
  32.    This Info file contains edition 1.03 of the GNU Emacs Lisp
  33. Reference Manual.
  34.  
  35. * Menu:
  36.  
  37. * License::                 Conditions for copying and changing GNU Emacs.
  38. * Introduction::            Introduction and conventions used.
  39.  
  40. * Types of Lisp Object::    Data types in Emacs Lisp.
  41. * Numbers::                 Numbers and arithmetic functions.
  42. * Strings and Characters::  Strings, and functions that work on them.
  43. * Lists::                   Lists, cons cells, and related functions.
  44. * Sequences Arrays Vectors::  Lists, strings and vectors are called sequences.
  45.                                 Certain functions act on any kind of sequence.
  46.                                 The description of vectors is here as well.
  47. * Symbols::                 Symbols represent names, uniquely.
  48.  
  49. * Evaluation::              How Lisp expressions are evaluated.
  50. * Control Structures::      Conditionals, loops, nonlocal exits.
  51. * Variables::               Using symbols in programs to stand for values.
  52. * Functions::               A function is a Lisp program
  53.                               that can be invoked from other functions.
  54. * Macros::                  Macros are a way to extend the Lisp language.
  55.  
  56. * Loading::                 Reading files of Lisp code into Lisp.
  57. * Byte Compilation::        Compilation makes programs run faster.
  58. * Debugging::               Tools and tips for debugging Lisp programs.
  59.  
  60. * Streams::                 Converting Lisp objects to text and back.
  61. * Minibuffers::             Using the minibuffer to read input.
  62. * Command Loop::            How the editor command loop works,
  63.                               and how you can call its subroutines.
  64. * Keymaps::                 Defining the bindings from keys to commands.
  65. * Modes::                   Defining major and minor modes.
  66. * Documentation::           Writing and using documentation strings.
  67.  
  68. * Files::                   Accessing files.
  69. * Backups and Auto-Saving:: Controlling how backups and auto-save
  70.                               files are made.
  71. * Buffers::                 Creating and using buffer objects.
  72. * Windows::                 Manipulating windows and displaying buffers.
  73. * Positions::               Buffer positions and motion functions.
  74. * Markers::                 Markers represent positions and update
  75.                               automatically when the text is changed.
  76.  
  77. * Text::                    Examining and changing text in buffers.
  78. * Searching and Matching::  Searching buffers for strings or regexps.
  79. * Syntax Tables::           The syntax table controls word and list parsing.
  80. * Abbrevs::                 How Abbrev mode works, and its data structures.
  81.  
  82. * Processes::               Running and communicating with subprocesses.
  83. * System Interface::        Getting the user id, system type, environment
  84.                               variables, and other such things.
  85. * Emacs Display::           Parameters controlling screen usage.
  86.                               The bell.  Waiting for input.
  87.  
  88. Appendices
  89.  
  90. * Tips::                    Advice for writing Lisp programs.
  91. * GNU Emacs Internals::     Building and dumping Emacs;
  92.                               internal data structures.
  93. * Standard Errors::         List of all error symbols.
  94. * Standard Buffer-Local Variables::  List of variables local in all buffers.
  95. * Standard Keymaps::        List of standard keymaps.
  96. * Standard Hooks::          List of standard hook variables.
  97.  
  98. * Index::                   Index including concepts, functions, variables,
  99.                               and other terms.
  100.  
  101.       -- The Detailed Node Listing --
  102.  
  103. Here are other nodes that are inferiors of those already listed,
  104. mentioned here so you can get to them in one step:
  105.  
  106. Introduction
  107.  
  108. * Caveats::                 Flaws and a request for help.
  109. * Lisp History::            Emacs Lisp is descended from Maclisp.
  110. * Conventions::             How the manual is formatted.
  111. * Acknowledgements::        The authors, editors, and sponsors of this manual.
  112.  
  113. Conventions
  114.  
  115. * Some Terms::              Explanation of terms we use in this manual.
  116. * nil and t::               How the symbols `nil' and `t' are used.
  117. * Evaluation Notation::     The format we use for examples of evaluation.
  118. * Printing Notation::       The format we use for examples that print output.
  119. * Error Messages::          The format we use for examples of errors.
  120. * Buffer Text Notation::    The format we use for buffer contents in examples.
  121. * Format of Descriptions::  Notation for describing functions, variables, etc.
  122.  
  123. Format of Descriptions
  124.  
  125. * A Sample Function Description::       
  126. * A Sample Variable Description::   
  127.  
  128. Lisp Data Types
  129.  
  130. * Printed Representation::  How Lisp objects are represented as text.
  131. * Comments::                Comments and their formatting conventions.
  132. * Programming Types::       Types found in all Lisp systems.
  133. * Editing Types::           Types specific to Emacs.
  134. * Type Predicates::         Tests related to types.
  135. * Equality Predicates::     Tests of equality between any two objects.
  136.  
  137. Programming Types
  138.  
  139. * Number Type::             Primarily integers.
  140. * Character Type::          The representation of letters, numbers and
  141.                               control characters.
  142. * Sequence Type::           Both lists and arrays are classified as sequences.
  143. * List Type::               Lists gave Lisp its name (not to mention its
  144.                               reputation).
  145. * Array Type::              Arrays include strings and vectors.
  146. * String Type::             An (efficient) array of characters.
  147. * Vector Type::             One-dimensional arrays.
  148. * Symbol Type::             A multi-use object that refers to a function,
  149.                               variable, property list, or itself.
  150. * Lisp Function Type::      A piece of executable code you can call
  151.                               from elsewhere.
  152. * Lisp Macro Type::         A method of expanding an expression into another
  153.                               expression, more fundamental but less pretty.
  154. * Primitive Function Type:: A function written in C, callable from Lisp.
  155. * Autoload Type::           A type used for automatically loading seldom-used
  156.                               functions.
  157.  
  158. List Type
  159.  
  160. * Dotted Pair Notation::    An alternative syntax for lists.
  161. * Association List Type::   A specially constructed list.
  162.  
  163. Editing Types
  164.  
  165. * Buffer Type::             The basic object of editing.
  166. * Window Type::             What makes buffers visible.
  167. * Window Configuration Type::Save what the screen looks like.
  168. * Marker Type::             A position in a buffer.
  169. * Process Type::            A process running on the underlying OS.
  170. * Stream Type::             Receive or send characters.
  171. * Keymap Type::             What function a keystroke invokes.
  172. * Syntax Table Type::       What a character means.
  173.  
  174. Numbers
  175.  
  176. * Number Basics::           Representation and range of numbers.
  177. * Predicates on Numbers::   Testing for numbers.
  178. * Comparison of Numbers::   Equality and inequality predicates.
  179. * Arithmetic Operations::   How to add, subtract, multiply and divide.
  180. * Bitwise Operations::      Logical and, or, not, shifting.
  181. * Random Numbers::          Obtaining random integers, predictable or not.
  182.  
  183. Strings and Characters
  184.  
  185. * Intro to Strings::        Basic properties of strings and characters.
  186. * Predicates for Strings::  Testing whether an object is a string or char.
  187. * Creating Strings::        Functions to allocate new strings.
  188. * Text Comparison::         Comparing characters or strings.
  189. * String Conversion::       Converting characters or strings and vice versa.
  190. * Formatting Strings::      `format': Emacs's analog of `printf'.
  191. * Character Case::          Case conversion functions.
  192.  
  193. Lists
  194.  
  195. * Cons Cells::              How lists are made out of cons cells.
  196. * Lists as Boxes::          Graphical notation to explain lists.
  197. * List-related Predicates:: Is this object a list?  Comparing two lists.
  198. * List Elements::           Extracting the pieces of a list.
  199. * Building Lists::          Creating list structure.
  200. * Modifying Lists::         Storing new pieces into an existing list.
  201. * Sets And Lists::          A list can represent a finite mathematical set.
  202. * Association Lists::       A list can represent a finite relation or mapping.
  203.  
  204. Modifying Existing List Structure
  205.  
  206. * Setcar::                  Replacing an element in a list.
  207. * Setcdr::                  Replacing part of the list backbone.
  208.                               This can be used to remove or add elements.
  209. * Rearrangement::           Reordering the elements in a list; combining lists.
  210.  
  211. Sequences, Arrays, and Vectors
  212.  
  213. * Sequence Functions::      Functions that accept any kind of sequence.
  214. * Arrays::                  Characteristics of arrays in Emacs Lisp.
  215. * Array Functions::         Functions specifically for arrays.
  216. * Vectors::                 Functions specifically for vectors.
  217.  
  218. Symbols
  219.  
  220. * Symbol Components::       Symbols have names, values, function definitions
  221.                               and property lists.
  222. * Definitions::             A definition says how a symbol will be used.
  223. * Creating Symbols::        How symbols are kept unique.
  224. * Property Lists::          Each symbol has a property list
  225.                               for recording miscellaneous information.
  226.  
  227. Evaluation
  228.  
  229. * Intro Eval::              Evaluation in the scheme of things.
  230. * Eval::                    How to invoke the Lisp interpreter explicitly.
  231. * Forms::                   How various sorts of objects are evaluated.
  232. * Quoting::                 Avoiding evaluation (to put constants in 
  233.                               the program).
  234.  
  235. Kinds of Forms
  236.  
  237. * Self-Evaluating Forms::   Forms that evaluate to themselves.
  238. * Symbol Forms::            Symbols evaluate as variables.
  239. * Classifying Lists::       How to distinguish various sorts of list forms.
  240. * Function Forms::          Forms that call functions.
  241. * Macro Forms::             Forms that call macros.
  242. * Special Forms::           "Special forms" are idiosyncratic primitives,
  243.                               most of them extremely important.
  244. * Autoloading::             Functions set up to load files
  245.                               containing their real definitions.
  246.  
  247. Control Structures
  248.  
  249. * Sequencing::              Evaluation in textual order.
  250. * Conditionals::            `if', `cond'.
  251. * Combining Conditions::    `and', `or', `not'.
  252. * Iteration::               `while' loops.
  253. * Nonlocal Exits::          Jumping out of a sequence.
  254.  
  255. Nonlocal Exits
  256.  
  257. * Catch and Throw::         Nonlocal exits for the program's own purposes.
  258. * Examples of Catch::       Showing how such nonlocal exits can be written.
  259. * Errors::                  How errors are signaled and handled.
  260. * Cleanups::                Arranging to run a cleanup form if an
  261.                               error happens.
  262.  
  263. Errors
  264.  
  265. * Signaling Errors::        How to report an error.
  266. * Processing of Errors::    What Emacs does when you report an error.
  267. * Handling Errors::         How you can trap errors and continue execution.
  268. * Error Names::             How errors are classified for trapping them.
  269.  
  270. Variables
  271.  
  272. * Global Variables::        Variable values that exist permanently, everywhere.
  273. * Constant Variables::      Certain "variables" have values that never change.
  274. * Local Variables::         Variable values that exist only temporarily.
  275. * Void Variables::          Symbols that lack values.
  276. * Defining Variables::      A definition says a symbol is used as a variable.
  277. * Accessing Variables::     Examining values of variables whose names
  278.                               are known only at run time.
  279. * Setting Variables::       Storing new values in variables.
  280. * Variable Scoping::        How Lisp chooses among local and global values.
  281. * Buffer-Local Variables::  Variable values in effect only in one buffer.
  282.  
  283. Scoping Rules for Variable Bindings
  284.  
  285. * Scope::                   Scope means where in the program a value 
  286.                               is visible.  Comparison with other languages.
  287. * Extent::                  Extent means how long in time a value exists.
  288. * Impl of Scope::           Two ways to implement dynamic scoping.
  289. * Using Scoping::           How to use dynamic scoping carefully and 
  290.                               avoid problems.
  291.  
  292. Buffer-Local Variables
  293.  
  294. * Intro to Buffer-Local::   Introduction and concepts.
  295. * Creating Buffer-Local::   Creating and destroying buffer-local bindings.
  296. * Default Value::           The default value is seen in buffers
  297.                               that don't have their own local values.
  298.  
  299. Functions
  300.  
  301. * What Is a Function::      Lisp functions vs primitives; terminology.
  302. * Lambda Expressions::      How functions are expressed as Lisp objects.
  303. * Function Names::          A symbol can serve as the name of a function.
  304. * Defining Functions::      Lisp expressions for defining functions.
  305. * Calling Functions::       How to use an existing function.
  306. * Mapping Functions::       Applying a function to each element of a list, etc.
  307. * Anonymous Functions::     Lambda-expressions are functions with no names.    
  308. * Function Cells::          Accessing or setting the function definition
  309.                               of a symbol.
  310. * Related Topics::          Cross-references to specific Lisp primitives
  311.                               that have a special bearing on how 
  312.                               functions work.
  313.  
  314. Lambda Expressions
  315.  
  316. * Lambda Components::       The parts of a lambda expression.
  317. * Simple Lambda::           A simple example.
  318. * Argument List::           Details and special features of argument lists.
  319. * Function Documentation::  How to put documentation in a function.
  320.  
  321. Macros
  322.  
  323. * Simple Macro::            A basic example.
  324. * Expansion::               How, when and why macros are expanded.
  325. * Compiling Macros::        How macros are expanded by the compiler.
  326. * Defining Macros::         How to write a macro definition.
  327. * Backquote::               Easier construction of list structure.
  328. * Problems with Macros::    Don't evaluate the macro arguments too many times.
  329.                                Don't hide the user's variables.
  330.  
  331. Loading
  332.  
  333. * How Programs Do Loading:: The `load' function and others.
  334. * Autoload::                Setting up a function to autoload.
  335. * Features::                Loading a library if it isn't already loaded.
  336. * Repeated Loading::        Precautions about loading a file twice.
  337.  
  338. Byte Compilation
  339.  
  340. * Compilation Functions::   Byte compilation functions.
  341. * Disassembly::             Disassembling byte-code; how to read byte-code.
  342.  
  343. Debugging Lisp Programs
  344.  
  345. * Debugger::                How the Emacs Lisp debugger is implemented.
  346. * Syntax Errors::           How to find syntax errors.
  347. * Compilation Errors::      How to find errors that show up in 
  348.                               byte compilation.
  349.  
  350. The Lisp Debugger
  351.  
  352. * Error Debugging::         Entering the debugger when an error happens.
  353. * Function Debugging::      Entering it when a certain function is called.
  354. * Explicit Debug::          Entering it at a certain point in the program.
  355. * Using Debugger::          What the debugger does; what you see while in it.
  356. * Debugger Commands::       Commands used while in the debugger.
  357. * Invoking the Debugger::   How to call the function `debug'.
  358. * Internals of Debugger::   Subroutines of the debugger, and global variables.
  359.  
  360. Debugging Invalid Lisp Syntax
  361.  
  362. * Excess Open::             How to find a spurious open paren or missing close.
  363. * Excess Close::            How to find a spurious close paren or missing open.
  364.  
  365. Reading and Printing Lisp Objects
  366.  
  367. * Streams Intro::           Overview of streams, reading and printing.
  368. * Input Streams::           Various data types that can be used as 
  369.                               input streams.
  370. * Input Functions::         Functions to read Lisp objects from text.
  371. * Output Streams::          Various data types that can be used as 
  372.                               input streams.
  373. * Output Functions::        Functions to print Lisp objects as text.
  374.  
  375. Minibuffers
  376.  
  377. * Intro to Minibuffers::    Basic information about minibuffers.
  378. * Text from Minibuffer::    How to read a straight text string.
  379. * Object from Minibuffer::  How to read a Lisp object or expression.
  380. * Completion::              How to invoke and customize completion.
  381. * Yes-or-No Queries::       Asking a question with a simple answer.
  382. * Minibuffer Misc::         Various customization hooks and variables.
  383.  
  384. Completion
  385.  
  386. * Basic Completion::        Low-level functions for completing strings.
  387.                               (These are too low level to use the minibuffer.)
  388. * Programmed Completion::   Finding the completions for a given file name.
  389. * Minibuffer Completion::   Invoking the minibuffer with completion.
  390. * Completion Commands::     Minibuffer commands that do completion.
  391. * High-Level Completion::   Convenient special cases of completion
  392.                               (reading buffer name, file name, etc.)
  393. * Reading File Names::      Using completion to read file names.
  394. * Lisp Symbol Completion::  Completing the name of a symbol.
  395.  
  396. Command Loop
  397.  
  398. * Command Overview::        How the command loop reads commands.
  399. * Defining Commands::       Specifying how a function should read arguments.
  400. * Interactive Call::        Calling a command, so that it will read arguments.
  401. * Command Loop Info::       Variables set by the command loop for you 
  402.                               to examine.
  403. * Keyboard Input::          How your program can read characters from 
  404.                               the keyboard.
  405. * Quitting::                How `C-g' works.  How to catch or 
  406.                                 defer quitting.
  407. * Prefix Command Arguments::  How the commands to set prefix args work.
  408. * Recursive Editing::       Entering a recursive edit, and why you
  409.                               usually shouldn't.
  410. * Disabling Commands::      How the command loop handles disabled commands.
  411. * Command History::         How the command history is set up, and 
  412.                               how accessed.
  413. * Keyboard Macros::         How keyboard macros are implemented.
  414.  
  415. Defining Commands
  416.  
  417. * Using Interactive::       General rules for `interactive'.
  418. * Interactive Codes::       The standard letter-codes for reading arguments
  419.                               in various ways.
  420. * Interactive Examples::    Examples of how to read interactive arguments.
  421.  
  422. Keymaps
  423.  
  424. * Keymap Terms::            Definitions of terms pertaining to keymaps.
  425. * Creating Keymaps::        Functions to create and copy keymaps.
  426. * Key Lookup::              How extracting elements from keymaps works.
  427. * Functions for Key Lookup::  How to request key lookup.
  428. * Prefix Keys::             Defining a key with a keymap as its definition.
  429. * Global and Local Keymaps::  Each buffer has a local keymap
  430.                                 to override the standard (global) bindings.
  431. * Changing Key Bindings::   Redefining a key in a keymap.
  432. * Key Binding Commands::    Interactive interfaces for redefining keys.
  433. * Scanning Keymaps::        Looking through all keymaps, for printing help.
  434.  
  435. Major and Minor Modes
  436.  
  437. * Major Modes::             Defining major modes.
  438. * Minor Modes::             Defining minor modes.
  439. * Mode Line Format::        Customizing the text that appears in the mode line.
  440. * Hooks::                   How to use hooks; how to write code that 
  441.                               provides hooks.
  442.  
  443. Major Modes
  444.  
  445. * Major Mode Conventions::  Coding conventions for keymaps, etc.
  446. * Example Major Modes::     Text mode and Lisp modes.
  447. * Auto Major Mode::         How Emacs chooses the major mode automatically.
  448. * Mode Help::               Finding out how to use a mode.
  449.  
  450. Minor Modes
  451.  
  452. * Minor Mode Conventions::  Tips for writing a minor mode.
  453. * Limits of Minor Modes::   Minor modes are of limited generality.
  454.  
  455. Mode Line Format
  456.  
  457. * Mode Line Data::          The data structure that controls the mode line.
  458. * Mode Line Variables::     Variables used in that data structure.
  459. * %-Constructs::            Putting information into a mode line.
  460.  
  461. Documentation
  462.  
  463. * Documentation Basics::    Good style for doc strings.
  464.                                Where to put them.  How Emacs stores them.
  465. * Accessing Documentation:: How Lisp programs can access doc strings.
  466. * Keys in Documentation::   Substituting current key bindings.
  467. * Describing Characters::   Making printable descriptions of
  468.                                non-printing characters and key sequences.
  469. * Help Functions::          Subroutines used by Emacs help facilities.
  470.  
  471. Files
  472.  
  473. * Visiting Files::          Reading files into Emacs buffers for editing.
  474. * Saving Buffers::          Writing changed buffers back into files.
  475. * Reading from Files::      Reading files into other buffers.
  476. * Writing to Files::        Writing new files from parts of buffers.
  477. * File Locks::              Locking and unlocking files, to prevent
  478.                                 simultaneous editing by two people.
  479. * Information about Files::   Testing existence, accessibility, size of files.
  480. * Contents of Directories::   Getting a list of the files in a directory.
  481. * Changing File Attributes::  Renaming files, changing protection, etc.
  482. * File Names::                Decomposing and expanding file names.
  483.  
  484. Visiting Files
  485.  
  486. * Visiting Functions::      The usual interface functions for visiting.
  487. * Subroutines of Visiting:: Lower-level subroutines that they use.
  488.  
  489. Information about Files
  490.  
  491. * Testing Accessibility::   Is a given file readable?  Writable?
  492. * Kinds of Files::          Is it a directory?  A link?
  493. * File Attributes::         How large is it?  Any other names?  Etc.
  494.  
  495. File Names
  496.  
  497. * File Name Components::    The directory part of a file name, and the rest.
  498. * Directory Names::         A directory's name as a directory
  499.                               is different from its name as a file.
  500. * Relative File Names::     Some file names are relative to a 
  501.                               current directory.
  502. * File Name Expansion::     Converting relative file names to absolute ones.
  503. * Unique File Names::       Generating names for temporary files.
  504. * File Name Completion::    Finding the completions for a given file name.
  505.  
  506. Backups and Auto-Saving
  507.  
  508. * Backup Files::            How backup files are made; how their names 
  509.                               are chosen.
  510. * Auto-Saving::             How auto-save files are made; how their
  511.                               names are chosen.
  512. * Reverting::               `revert-buffer', and how to customize 
  513.                               what it does.
  514.  
  515. Backup Files
  516.  
  517. * Making Backups::          How Emacs makes backup files, and when.
  518. * Rename or Copy::          Two alternatives: renaming the old file 
  519.                               or copying it.
  520. * Numbered Backups::        Keeping multiple backups for each source file.
  521. * Backup Names::            How backup file names are computed; customization.
  522.  
  523. Buffers
  524.  
  525. * Buffer Basics::           What is a buffer?
  526. * Buffer Names::            Accessing and changing buffer names.
  527. * Buffer File Name::        The buffer file name indicates which file
  528.                               is visited.
  529. * Buffer Modification::     A buffer is "modified" if it needs to be saved.
  530. * Modification Time::       Determining whether the visited file was changed
  531.                               "behind Emacs's back".
  532. * Read Only Buffers::       Modifying text is not allowed in a
  533.                               read-only buffer.
  534. * The Buffer List::         How to look at all the existing buffers.
  535. * Creating Buffers::        Functions that create buffers.
  536. * Killing Buffers::         Buffers exist until explicitly killed.
  537. * Current Buffer::          Designating a buffer as current
  538.                               so primitives will access its contents.
  539.  
  540. Windows
  541.  
  542. * Basic Windows::           Basic information on using windows.
  543. * Splitting Windows::       Splitting one window into two windows.
  544. * Deleting Windows::        Deleting a window gives its space to other windows.
  545. * Selecting Windows::       The selected window is the one that you edit in.
  546. * Cyclic Window Ordering::  Moving around the existing windows.
  547. * Buffers and Windows::     Each window displays the contents of a buffer.
  548. * Displaying Buffers::      Higher-lever functions for displaying a buffer
  549.                               and choosing a window for it.
  550. * Window Point::            Each window has its own location of point.
  551. * Window Start::            The display-start position controls which text
  552.                               is on-screen in the window. 
  553. * Vertical Scrolling::      Moving text up and down in the window.
  554. * Horizontal Scrolling::    Moving text sideways on the window.
  555. * Size of Window::          Accessing the size of a window.
  556. * Resizing Windows::        Changing the size of a window.
  557. * Window Configurations::   Saving and restoring the state of the screen.
  558.  
  559. Positions
  560.  
  561. * Point::                   The special position where editing takes place.
  562. * Motion::                  Changing point.
  563. * Excursions::              Temporary motion and buffer changes.
  564. * Narrowing::               Restricting editing to a portion of the buffer.
  565.  
  566. Motion
  567.  
  568. * Character Motion::        Moving in terms of characters.
  569. * Word Motion::             Moving in terms of words.
  570. * Buffer End Motion::       Moving to the beginning or end of the buffer.
  571. * Text Lines::              Moving in terms of lines of text.
  572. * Screen Lines::            Moving in terms of lines as displayed.
  573. * Vertical Motion::         Implementation of `next-line' and
  574.                               `previous-line'.
  575. * List Motion::             Moving by parsing lists and sexps.
  576. * Skipping Characters::     Skipping characters belonging to a certain set.
  577.  
  578. Markers
  579.  
  580. * Overview of Markers::     The components of a marker, and how it relocates.
  581. * Predicates on Markers::   Testing whether an object is a marker.
  582. * Creating Markers::        Making empty markers or markers at certain places.
  583. * Information from Markers::  Finding the marker's buffer or 
  584.                                   character position.
  585. * Changing Markers::        Moving the marker to a new buffer or position.
  586. * The Mark::                How "the mark" is implemented with a marker.
  587. * The Region::              How to access "the region".
  588.  
  589. Text
  590.  
  591. * Near Point::              Examining text in the vicinity of point.
  592. * Buffer Contents::         Examining text in a general fashion.
  593. * Insertion::               Adding new text to a buffer.
  594. * Commands for Insertion::  User-level commands to insert text.
  595. * Deletion::                Removing text from a buffer.
  596. * User-Level Deletion::     User-level commands to delete text.
  597. * The Kill Ring::           Where removed text sometimes is saved for
  598.                               later use.
  599. * Undo::                    Undoing changes to the text of a buffer.
  600. * Auto Filling::            How auto-fill mode is implemented to break lines.
  601. * Filling::                 Functions for explicit filling.
  602. * Sorting::                 Functions for sorting parts of the buffer.
  603. * Indentation::             Functions to insert or adjust indentation.
  604. * Columns::                 Computing horizontal positions, and using them.
  605. * Case Changes::            Case conversion of parts of the buffer.
  606. * Substitution::            Replacing a given character wherever it appears.
  607. * Underlining::             Inserting or deleting underlining-by-overstrike.
  608. * Registers::               How registers are implemented.  Accessing
  609.                               the text or position stored in a register.
  610.  
  611. The Kill Ring
  612.  
  613. * Data in Kill Ring::       What text looks like in the kill ring.
  614. * Kill Functions::          Functions that kill text.
  615. * Yank Commands::           Commands that access the kill ring.
  616. * Kill Ring Internals::     Variables that hold kill-ring data.
  617.  
  618. Indentation
  619.  
  620. * Primitive Indent::        Functions used to count and insert indentation.
  621. * Mode-Specific Indent::    Customize indentation for different modes.
  622. * Region Indent::           Indent all the lines in a region.
  623. * Relative Indent::         Indent the current line based on previous lines.
  624. * Indent Tabs::             Adjustable, typewriter-like tab stops.
  625. * Motion by Indent::        Move to first non-blank character.
  626.  
  627. Searching and Matching
  628.  
  629. * String Search::           Search for an exact match.
  630. * Regular Expressions::     Describing classes of strings.
  631. * Regexp Search::           Searching for a match for a regexp.
  632. * Match Data::              Finding out which part of the text matched
  633.                               various parts of a regexp, after regexp search.
  634. * Saving Match Data::       Saving and restoring this information.
  635. * Standard Regexps::        Useful regexps for finding sentences, pages,...
  636. * Searching and Case::      Case-independent or case-significant searching.
  637.  
  638. Regular Expressions
  639.  
  640. * Syntax of Regexps::       Rules for writing regular expressions.
  641. * Regexp Example::          Illustrates regular expression syntax.
  642.  
  643. Syntax Tables
  644.  
  645. * Syntax Descriptors::      How characters are classified.
  646. * Syntax Table Functions::  How to create, examine and alter syntax tables.
  647. * Parsing Expressions::     Parsing balanced expressions
  648.                               using the syntax table.
  649. * Standard Syntax Tables::  Syntax tables used by various major modes.
  650. * Syntax Table Internals::  How syntax table information is stored.
  651.  
  652. Syntax Descriptors
  653.  
  654. * Syntax Class Table::      Table of syntax classes.
  655. * Syntax Flags::            Additional flags each character can have.
  656.  
  657. Abbrevs And Abbrev Expansion
  658.  
  659. * Abbrev Mode::             Setting up Emacs for abbreviation.
  660. * Tables: Abbrev Tables.    Creating and working with abbrev tables.
  661. * Defining Abbrevs::        Specifying abbreviations and their expansions.
  662. * Files: Abbrev Files.      Saving abbrevs in files.
  663. * Expansion: Abbrev Expansion.  Controlling expansion; expansion subroutines.
  664. * Standard Abbrev Tables::  Abbrev tables used by various major modes.
  665.  
  666. Processes
  667.  
  668. * Subprocess Creation::     Functions that start subprocesses.
  669. * Synchronous Processes::   Details of using synchronous subprocesses.
  670. * Asynchronous Processes::  Starting up an asynchronous subprocess.
  671. * Deleting Processes::      Eliminating an asynchronous subprocess.
  672. * Process Information::     Accessing run-status and other attributes.
  673. * Input to Processes::      Sending input to an asynchronous subprocess.
  674. * Signals to Processes::    Stopping, continuing or interrupting
  675.                               an asynchronous subprocess.
  676. * Output from Processes::   Collecting output from an asynchronous subprocess.
  677. * Sentinels::               Sentinels run when process run-status changes.
  678. * VMS Subprocesses::        VMS has completely different subprocess features.
  679. * TCP::                     Opening network connections.
  680.  
  681. Receiving Output from Processes
  682.  
  683. * Process Buffers::         If no filter, output is put in a buffer.
  684. * Filter Functions::        Filter functions accept output from the process.
  685. * Accepting Output::        How to wait until process output arrives.
  686.  
  687. Operating System Interface
  688.  
  689. * Starting Up::             Customizing Emacs start-up processing.
  690. * Getting Out::             How exiting works (permanent or temporary).
  691. * System Environment::      Distinguish the name and kind of system.
  692. * Terminal Input::          Recording terminal input for debugging.
  693. * Terminal Output::         Recording terminal output for debugging.
  694. * Flow Control::            How to turn output flow control on or off.
  695. * Batch Mode::              Running Emacs without terminal interaction.
  696.  
  697. Starting Up Emacs
  698.  
  699. * Start-up Summary::        Sequence of actions Emacs performs at start-up.
  700. * Init File::               Details on reading the init file (`.emacs').
  701. * Terminal-Specific::       How the terminal-specific Lisp file is read.
  702. * Command Line Arguments::  How command line arguments are processed,
  703.                               and how you can customize them.
  704.  
  705. Getting out of Emacs
  706.  
  707. * Killing Emacs::           Exiting Emacs irreversibly.
  708. * Suspending Emacs::        Exiting Emacs reversibly.
  709.  
  710. Emacs Display
  711.  
  712. * Refresh Screen::          Clearing the screen and redrawing everything on it.
  713. * Screen Attributes::       How big is the Emacs screen.
  714. * Truncation::              Folding or wrapping long text lines.
  715. * The Echo Area::           Where messages are displayed.
  716. * Selective Display::       Hiding part of the buffer text.
  717. * Overlay Arrow::           Display of an arrow to indicate position.
  718. * Temporary Displays::      Displays that go away automatically.
  719. * Waiting::                 Forcing display update and waiting for user.
  720. * Blinking::                How Emacs shows the matching open parenthesis.
  721. * Control Char Display::    How control characters are displayed.
  722. * Beeping::                 Audible signal to the user.
  723. * Window Systems::          Which window system is being used.
  724.  
  725. GNU Emacs Internals
  726.  
  727. * Building Emacs::          How to preload Lisp libraries into Emacs.
  728. * Pure Storage::            A kludge to make preloaded Lisp functions sharable.
  729. * Garbage Collection::      Reclaiming space for Lisp objects no longer used.
  730. * Object Internals::        Data formats of buffers, windows, processes.
  731. * Writing Emacs Primitives::Writing C code for Emacs.
  732.  
  733. Object Internals
  734.  
  735. * Buffer Internals::        Components of a buffer structure.
  736. * Window Internals::        Components of a window structure.
  737. * Process Internals::       Components of a process structure.
  738.  
  739.  
  740. 
  741. File: elisp,  Node: License,  Next: Introduction,  Prev: Top,  Up: Top
  742.  
  743. GNU Emacs General Public License
  744. ********************************
  745.  
  746.                            (Clarified 11 Feb 1988)
  747.  
  748.    The license agreements of most software companies keep you at the
  749. mercy of those companies.  By contrast, our general public license is
  750. intended to give everyone the right to share GNU Emacs.  To make sure
  751. that you get the rights we want you to have, we need to make
  752. restrictions that forbid anyone to deny you these rights or to ask
  753. you to surrender the rights.  Hence this license agreement.
  754.  
  755.    Specifically, we want to make sure that you have the right to give
  756. away copies of Emacs, that you receive source code or else can get it
  757. if you want it, that you can change Emacs or use pieces of it in new
  758. free programs, and that you know you can do these things.
  759.  
  760.    To make sure that everyone has such rights, we have to forbid you
  761. to deprive anyone else of these rights.  For example, if you
  762. distribute copies of Emacs, you must give the recipients all the
  763. rights that you have.  You must make sure that they, too, receive or
  764. can get the source code.  And you must tell them their rights.
  765.  
  766.    Also, for our own protection, we must make certain that everyone
  767. finds out that there is no warranty for GNU Emacs.  If Emacs is
  768. modified by someone else and passed on, we want its recipients to
  769. know that what they have is not what we distributed, so that any
  770. problems introduced by others will not reflect on our reputation.
  771.  
  772.    Therefore we (Richard Stallman and the Free Software Foundation,
  773. Inc.) make the following terms which say what you must do to be
  774. allowed to distribute or change GNU Emacs.
  775.  
  776. Copying Policies
  777. ================
  778.  
  779.   1. You may copy and distribute verbatim copies of GNU Emacs source
  780.      code as you receive it, in any medium, provided that you
  781.      conspicuously and appropriately publish on each file a valid
  782.      copyright notice "Copyright (C) 1988 Free Software Foundation,
  783.      Inc." (or with whatever year is appropriate); keep intact the
  784.      notices on all files that refer to this License Agreement and to
  785.      the absence of any warranty; and give any other recipients of
  786.      the GNU Emacs program a copy of this License Agreement along
  787.      with the program.  You may charge a distribution fee for the
  788.      physical act of transferring a copy.
  789.  
  790.   2. You may modify your copy or copies of GNU Emacs source code or
  791.      any portion of it, and copy and distribute such modifications
  792.      under the terms of Paragraph 1 above, provided that you also do
  793.      the following:
  794.  
  795.         * cause the modified files to carry prominent notices stating
  796.           who last changed such files and the date of any change; and
  797.  
  798.         * cause the whole of any work that you distribute or publish,
  799.           that in whole or in part contains or is a derivative of GNU
  800.           Emacs or any part thereof, to be licensed at no charge to
  801.           all third parties on terms identical to those contained in
  802.           this License Agreement (except that you may choose to grant
  803.           more extensive warranty protection to some or all third
  804.           parties, at your option).
  805.  
  806.         * if the modified program serves as a text editor, cause it,
  807.           when started running in the simplest and usual way, to
  808.           print an announcement including a valid copyright notice
  809.           "Copyright (C) 1988 Free Software Foundation, Inc." (or
  810.           with the year that is appropriate), saying that there is no
  811.           warranty (or else, saying that you provide a warranty) and
  812.           that users may redistribute the program under these
  813.           conditions, and telling the user how to view a copy of this
  814.           License Agreement.
  815.  
  816.         * You may charge a distribution fee for the physical act of
  817.           transferring a copy, and you may at your option offer
  818.           warranty protection in exchange for a fee.
  819.  
  820.         Mere aggregation of another unrelated program with this
  821.      program (or its derivative) on a volume of a storage or
  822.      distribution medium does not bring the other program under the
  823.      scope of these terms.
  824.  
  825.   3. You may copy and distribute GNU Emacs (or a portion or
  826.      derivative of it, under Paragraph 2) in object code or
  827.      executable form under the terms of Paragraphs 1 and 2 above
  828.      provided that you also do one of the following:
  829.  
  830.         * accompany it with the complete corresponding
  831.           machine-readable source code, which must be distributed
  832.           under the terms of Paragraphs 1 and 2 above; or,
  833.  
  834.         * accompany it with a written offer, valid for at least three
  835.           years, to give any third party free (except for a nominal
  836.           shipping charge) a complete machine-readable copy of the
  837.           corresponding source code, to be distributed under the
  838.           terms of Paragraphs 1 and 2 above; or,
  839.  
  840.         * accompany it with the information you received as to where
  841.           the corresponding source code may be obtained.  (This
  842.           alternative is allowed only for noncommercial distribution
  843.           and only if you received the program in object code or
  844.           executable form alone.)
  845.  
  846.         For an executable file, complete source code means all the
  847.      source code for all modules it contains; but, as a special
  848.      exception, it need not include source code for modules which are
  849.      standard libraries that accompany the operating system on which
  850.      the executable file runs.
  851.  
  852.   4. You may not copy, sublicense, distribute or transfer GNU Emacs
  853.      except as expressly provided under this License Agreement.  Any
  854.      attempt otherwise to copy, sublicense, distribute or transfer
  855.      GNU Emacs is void and your rights to use GNU Emacs under this
  856.      License agreement shall be automatically terminated.  However,
  857.      parties who have received computer software programs from you
  858.      with this License Agreement will not have their licenses
  859.      terminated so long as such parties remain in full compliance.
  860.  
  861.   5. If you wish to incorporate parts of GNU Emacs into other free
  862.      programs whose distribution conditions are different, write to
  863.      the Free Software Foundation.  We have not yet worked out a
  864.      simple rule that can be stated here, but we will often permit
  865.      this.  We will be guided by the two goals of preserving the free
  866.      status of all derivatives of our free software and of promoting
  867.      the sharing and reuse of software.
  868.  
  869.    Your comments and suggestions about our licensing policies and our
  870. software are welcome!  Please contact the Free Software Foundation,
  871. Inc., 675 Mass Ave, Cambridge, MA 02139.
  872.  
  873. NO WARRANTY
  874. ===========
  875.  
  876.    BECAUSE GNU EMACS IS LICENSED FREE OF CHARGE, WE PROVIDE
  877. ABSOLUTELY NO WARRANTY, TO THE EXTENT PERMITTED BY APPLICABLE STATE
  878. LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING, FREE SOFTWARE
  879. FOUNDATION, INC, RICHARD M. STALLMAN AND/OR OTHER PARTIES PROVIDE GNU
  880. EMACS "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
  881. IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  882. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE
  883. RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. 
  884. SHOULD THE GNU EMACS PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
  885. ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
  886.  
  887.    IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL FREE SOFTWARE
  888. FOUNDATION, INC., RICHARD M. STALLMAN, AND/OR ANY OTHER PARTY WHO MAY
  889. MODIFY AND REDISTRIBUTE GNU EMACS AS PERMITTED ABOVE, BE LIABLE TO
  890. YOU FOR DAMAGES, INCLUDING ANY LOST PROFITS, LOST MONIES, OR OTHER
  891. SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE
  892. OR INABILITY TO USE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR
  893. DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY THIRD PARTIES
  894. OR A FAILURE OF THE PROGRAM TO OPERATE WITH PROGRAMS NOT DISTRIBUTED
  895. BY FREE SOFTWARE FOUNDATION, INC.) THE PROGRAM, EVEN IF YOU HAVE BEEN
  896. ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR FOR ANY CLAIM BY ANY
  897. OTHER PARTY.
  898.  
  899.  
  900. 
  901. File: elisp,  Node: Introduction,  Next: Types of Lisp Object,  Prev: License,  Up: Top
  902.  
  903. Introduction
  904. ************
  905.  
  906.    Most of the GNU Emacs text editor is written in the programming
  907. language called Emacs Lisp.  You can write new code in Emacs Lisp and
  908. install it as an extension to the editor.  However, Emacs Lisp is
  909. more than a mere "extension language"; it is a full computer
  910. programming language in its own right.  You can use it as you would
  911. any other programming language.
  912.  
  913.    Because Emacs Lisp is designed for use in an editor, it has
  914. special features for scanning and parsing text as well as features
  915. for handling files, buffers, displays, subprocesses, and so on. 
  916. Emacs Lisp is closely integrated with the editing facilities; thus,
  917. editing commands are functions that can also conveniently be called
  918. from Lisp programs, and parameters for customization are ordinary
  919. Lisp variables.
  920.  
  921.    This manual describes Emacs Lisp, presuming considerable
  922. familiarity with the use of Emacs for editing.  (See ``The GNU Emacs
  923. Manual'', for this basic information.)  Generally speaking, the
  924. earlier chapters describe features of Emacs Lisp that have
  925. counterparts in many programming languages, and later chapters
  926. describe features that are peculiar to Emacs Lisp or relate
  927. specifically to editing.
  928.  
  929.    This is edition 1.02.
  930.  
  931. * Menu:
  932.  
  933. * Caveats::             Flaws and a request for help.
  934. * Lisp History::        Emacs Lisp is descended from Maclisp.
  935. * Conventions::         How the manual is formatted.
  936. * Acknowledgements::    The authors, editors, and sponsors of this manual.
  937.  
  938.  
  939. 
  940. File: elisp,  Node: Caveats,  Next: Lisp History,  Prev: Introduction,  Up: Introduction
  941.  
  942. Caveats
  943. =======
  944.  
  945.    This manual has gone through numerous drafts.  It is nearly
  946. complete but not flawless.  There are a few sections which are not
  947. included, either because we consider them secondary (such as most of
  948. the individual modes) or because they are yet to be written.
  949.  
  950.    Because we are not able to deal with them completely, we have left
  951. out several parts intentionally.  This includes most references to
  952. VMS and all information relating to X Windows and Sunview.  The
  953. functions for using X Windows will in any case be entirely different
  954. in version 19.  (The Free Software Foundation expends no effort on
  955. support for Sunview, since we believe users should use free X Windows
  956. rather than proprietary window systems.)
  957.  
  958.    The manual should be fully correct in what it does cover, and it
  959. is therefore open to criticism on anything it says--from specific
  960. examples and descriptive text, to the ordering of chapters and
  961. sections.  If something is confusing, or you find that you have to
  962. look at the sources or experiment to learn something not covered in
  963. the manual, then perhaps the manual should be fixed.  Please let us
  964. know.
  965.  
  966.    As you use this manual, we ask that you send corrections as soon
  967. as you find them.  If you think of a simple, real life example for a
  968. function or group of functions, please make an effort to write it up
  969. and send it in.  Please reference any comments to the node name and
  970. function or variable name, as appropriate.
  971.  
  972.    Please mail comments and corrections to
  973. `lisp-manual-bugs@prep.ai.mit.edu'.
  974.  
  975.       --Bil Lewis, Dan LaLiberte, Richard Stallman
  976.  
  977.  
  978. 
  979. File: elisp,  Node: Lisp History,  Next: Conventions,  Prev: Caveats,  Up: Introduction
  980.  
  981. Lisp History
  982. ============
  983.  
  984. Lisp (LISt Processing language) was first developed in the late 1950s
  985. at the Massachusetts Institute of Technology for research in
  986. artificial intelligence.  The great power of the Lisp language makes
  987. it superior for other purposes as well, such as writing editing
  988. commands.
  989.  
  990.    Dozens of Lisp implementations have been built over the years,
  991. each with its own idiosyncrasies.  Many of them were inspired by
  992. Maclisp, which was written in the 1960's at MIT's Project MAC. 
  993. Eventually the implementors of the descendents of Maclisp came
  994. together and developed a standard for Lisp systems, called Common Lisp.
  995.  
  996.    GNU Emacs Lisp is largely inspired by Maclisp, and a little by
  997. Common Lisp.  If you know Common Lisp, you will notice many
  998. similarities.  However, many of the features of Common Lisp have been
  999. omitted or simplified in order to reduce the memory requirements of
  1000. GNU Emacs.  Sometimes the simplifications are so drastic that a
  1001. Common Lisp user might be very confused.  We will occasionally point
  1002. out how GNU Emacs Lisp differs from Common Lisp.  If you don't know
  1003. Common Lisp, don't worry about it; this manual is self-contained.
  1004.  
  1005.  
  1006. 
  1007. File: elisp,  Node: Conventions,  Next: Acknowledgements,  Prev: Lisp History,  Up: Introduction
  1008.  
  1009. Conventions
  1010. ===========
  1011.  
  1012.    This section explains the notational conventions that are used in
  1013. this manual.  You may want to skip this section and refer back to it
  1014. later.
  1015.  
  1016. * Menu:
  1017.  
  1018. * Some Terms::               Explanation of terms we use in this manual.
  1019. * nil and t::                How the symbols `nil' and `t' are used.
  1020. * Evaluation Notation::      The format we use for examples of evaluation.
  1021. * Printing Notation::        The format we use for examples that print output.
  1022. * Error Messages::           The format we use for examples of errors.
  1023. * Buffer Text Notation::     The format we use for buffer contents in examples.
  1024. * Format of Descriptions::   Notation for describing functions, variables, etc.
  1025.  
  1026.  
  1027. 
  1028. File: elisp,  Node: Some Terms,  Next: nil and t,  Prev: Conventions,  Up: Conventions
  1029.  
  1030. Some Terms
  1031. ----------
  1032.  
  1033.    Throughout this manual, the phrases "the Lisp reader" and "the
  1034. Lisp printer" are used to refer to those routines in Lisp that
  1035. convert textual representations of Lisp objects into actual objects,
  1036. and vice versa.  *Note Printed Representation::, for more details. 
  1037. You, the person reading this manual, are assumed to be "the
  1038. programmer" and are addressed as "you".  "The user" is the person who
  1039. uses the code that you write.
  1040.  
  1041.    Examples of Lisp code appear in this font or form: `(list 1 2 3)'.
  1042. Names that represent arguments or metasyntactic variables appear in
  1043. this font or form: FIRST-NUMBER.
  1044.  
  1045.  
  1046. 
  1047. File: elisp,  Node: nil and t,  Next: Evaluation Notation,  Prev: Some Terms,  Up: Conventions
  1048.  
  1049. `nil' and `t'
  1050. -------------
  1051.  
  1052.    In Lisp, the symbol `nil' is overloaded with three meanings: it is
  1053. a symbol with the name `nil'; it is the logical truth value FALSE;
  1054. and it is the empty list--the list of zero elements.  When used as a
  1055. variable, `nil' always has the value `nil'.
  1056.  
  1057.    As far as the Lisp reader is concerned, `()' and `nil' are
  1058. identical: they stand for the same object, the symbol `nil'.  The
  1059. different ways of writing the symbol are intended entirely for human
  1060. readers.  After the Lisp reader has read either `()' or `nil', there
  1061. is no way to determine which representation was actually written by
  1062. the programmer.
  1063.  
  1064.    In this manual, we use `()' when we wish to emphasize that it
  1065. means the empty list, and we use `nil' when we wish to emphasize that
  1066. it means the truth value FALSE.  That is a good convention to use in
  1067. Lisp programs also.
  1068.  
  1069.      (cons 'foo ())                ; Emphasize the empty list
  1070.      (not nil)                     ; Emphasize the truth value FALSE
  1071.  
  1072.    In context where a truth value is expected, any non-`nil' value is
  1073. considered to be TRUE.  However, `t' is the preferred way to
  1074. represent the truth value TRUE.  When you need to choose a value
  1075. which represents TRUE, and there is no other basis for choosing, use
  1076. `t'.  The symbol `t' always has value `t'.
  1077.  
  1078.    In Emacs Lisp, `nil' and `t' are special symbols that always
  1079. evaluate to themselves.  This is so that you do not need to quote
  1080. them to use them as constants in a program.  An attempt to change
  1081. their values results in a `setting-constant' error.  *Note Accessing
  1082. Variables::.
  1083.  
  1084.  
  1085.